

public class SmsType {
	enum smsType {
		CommandReply, LatLng
	}

	public static smsType chkSMSType(Message msg) {
		String content = msg.getContent();
		if (content.contains("lat") && content.contains("long")
				&& content.contains("speed") && content.contains("signal")
				&& content.contains("imei")) {
			return smsType.LatLng;
		}
		return smsType.CommandReply;
	}

}
